// 聊天设置页面的mock数据

// 默认的聊天设置数据
export const defaultChatSettings = {
  userInfo: {
    name: 'CSDN官方博客',
    avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
    description: 'CSDN博客官方账号',
    isVip: true
  },
  isFollowing: false,
  isPinned: false,
  isCollapsed: false,
  isBlacklisted: false,
  isMuted: false,
  isBlockedGroupMessages: true
};

// 不同用户的聊天设置数据
export const chatSettingsMap = {
  'user1': {
    userInfo: {
      name: 'CSDN官方博客',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      description: 'CSDN博客官方账号',
      isVip: true
    },
    isFollowing: false,
    isPinned: false,
    isCollapsed: false,
    isBlacklisted: false,
    isMuted: false,
    isBlockedGroupMessages: true
  },
  'user2': {
    userInfo: {
      name: '海拥X',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      description: '全球领域优质原创作者',
      isVip: true
    },
    isFollowing: true,
    isPinned: false,
    isCollapsed: false,
    isBlacklisted: false,
    isMuted: false,
    isBlockedGroupMessages: false
  },
  'user3': {
    userInfo: {
      name: '开发者小王',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      description: '前端开发工程师',
      isVip: false
    },
    isFollowing: true,
    isPinned: true,
    isCollapsed: false,
    isBlacklisted: false,
    isMuted: false,
    isBlockedGroupMessages: true
  }
};

// 获取聊天设置数据
export function getChatSettings(userId) {
  // 如果提供了用户ID，并且该用户ID在映射中存在，则返回对应的数据
  if (userId && chatSettingsMap[userId]) {
    return chatSettingsMap[userId];
  }
  // 否则返回默认数据
  return defaultChatSettings;
}